How to Become a Self-Taught Programmer by Kaiching Chang

How to Become a Self-Taught Programmer by Kaiching Chang

Author:Kaiching Chang
Language: eng
Format: epub
Publisher: Kaiching Chang
Published: 2016-04-15T00:00:00+00:00


Selections

The selection is that a program can have different result according to conditions. A condition has two possible result, true or false, so the program will have two possible way to execute. Let's talk about real code. All the above eight programming languages have the following keyword if

if

and else.

else

Let's use a simple example of the C code to explain how to use the two keywords.

int condition = 1;

if (condition) {

printf("The condition is true.
");

}

else {

printf("The condition is false.
");

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.